Skip to content

Update Hub domain-based restrictions

Request

Modified the domain-based restrictions settings.

Security
ApiKeyAuth
Path
subdomainstringrequired

Unique subdomain of requested Hub.

Query
api_versionstring

Api version

Value:"V3-R1"
Bodyapplication/json
enabledboolean
domains_whitelistArray of strings

Array of domain names.

Example:
[ "company.com", "another-domain.com" ]
curl -i -X PUT \
  'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/access_restriction/domains_whitelist?api_version=V3-R1' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "enabled": true,
    "domains_whitelist": [
      "company.com",
      "another-domain.com"
    ]
  }'

Responses

OK

Bodyapplication/json
enabledboolean
domains_whitelistArray of strings

Array of domain names.

Example:
[ "company.com", "another-domain.com" ]
Response
{ "enabled": true, "domains_whitelist": [ "company.com", "another-domain.com" ] }